package com.atguigu.eduorder.service;

import com.atguigu.eduorder.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author Panghl
 * @since 2021-02-21
 */
public interface TOrderService extends IService<TOrder> {

    /**
     * 生成订单
     * @param courseId
     * @param memberId
     * @return
     */
    String createOrder(String courseId, String memberId);

    /**
     * 根据订单号获取订单
     * @param orderNo
     * @return
     */
    TOrder getByOrderNo(String orderNo);
}
